package com.dldata.devtools30.entity;

import jakarta.persistence.*;

/**
 * Created by 呵呵 on 2017-09-23.
 */
@Entity
@Table(name = "devt_form_listtempl_config")
public class DevtFormListtemplConfigEntity {
    private String id;
    private String templeid;
    private String formid;
    private Integer xh;
    private String label;
    private String height;
    private Integer temlpletype;
    private String temlplecontent;
    private Integer ishow;

    @Id
    @Column(name = "id", nullable = false, insertable = true, updatable = true, length = 64)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "templeid", nullable = true, insertable = true, updatable = true, length = 64)
    public String getTempleid() {
        return templeid;
    }

    public void setTempleid(String templeid) {
        this.templeid = templeid;
    }

    @Basic
    @Column(name = "formid", nullable = true, insertable = true, updatable = true, length = 64)
    public String getFormid() {
        return formid;
    }

    public void setFormid(String formid) {
        this.formid = formid;
    }

    @Basic
    @Column(name = "xh", nullable = true, insertable = true, updatable = true)
    public Integer getXh() {
        return xh;
    }

    public void setXh(Integer xh) {
        this.xh = xh;
    }

    @Basic
    @Column(name = "label", nullable = true, insertable = true, updatable = true, length = 128)
    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @Basic
    @Column(name = "height", nullable = true, insertable = true, updatable = true, length = 128)
    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    @Basic
    @Column(name = "temlpletype", nullable = true, insertable = true, updatable = true)
    public Integer getTemlpletype() {
        return temlpletype;
    }

    public void setTemlpletype(Integer temlpletype) {
        this.temlpletype = temlpletype;
    }

    @Basic
    @Column(name = "temlplecontent", nullable = true, insertable = true, updatable = true, length = 3096)
    public String getTemlplecontent() {
        return temlplecontent;
    }

    public void setTemlplecontent(String temlplecontent) {
        this.temlplecontent = temlplecontent;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DevtFormListtemplConfigEntity that = (DevtFormListtemplConfigEntity) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (templeid != null ? !templeid.equals(that.templeid) : that.templeid != null) return false;
        if (formid != null ? !formid.equals(that.formid) : that.formid != null) return false;
        if (xh != null ? !xh.equals(that.xh) : that.xh != null) return false;
        if (label != null ? !label.equals(that.label) : that.label != null) return false;
        if (height != null ? !height.equals(that.height) : that.height != null) return false;
        if (temlpletype != null ? !temlpletype.equals(that.temlpletype) : that.temlpletype != null) return false;
        if (temlplecontent != null ? !temlplecontent.equals(that.temlplecontent) : that.temlplecontent != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (templeid != null ? templeid.hashCode() : 0);
        result = 31 * result + (formid != null ? formid.hashCode() : 0);
        result = 31 * result + (xh != null ? xh.hashCode() : 0);
        result = 31 * result + (label != null ? label.hashCode() : 0);
        result = 31 * result + (height != null ? height.hashCode() : 0);
        result = 31 * result + (temlpletype != null ? temlpletype.hashCode() : 0);
        result = 31 * result + (temlplecontent != null ? temlplecontent.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "ishow", nullable = true, insertable = true, updatable = true)
    public Integer getIshow() {
        return ishow;
    }

    public void setIshow(Integer ishow) {
        this.ishow = ishow;
    }
}
